package cn.xinfei.xdecision.common.datadao;

import cn.xinfei.xdecision.common.datamodel.DecisionReentryLog;
import cn.xinfei.xdecision.common.dynamic.DynamicDataSourceSwitch;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DecisionReentryLogMapper extends BaseMapper<DecisionReentryLog> {
    @Override
    @DynamicDataSourceSwitch
    int insert(DecisionReentryLog entity);

    @Override
    @DynamicDataSourceSwitch
    int update(@Param(Constants.ENTITY) DecisionReentryLog entity, @Param(Constants.WRAPPER) Wrapper<DecisionReentryLog> updateWrapper);

    @Override
    @DynamicDataSourceSwitch
    List<DecisionReentryLog> selectList(@Param(Constants.WRAPPER) Wrapper<DecisionReentryLog> queryWrapper);
}
